package com.huabo.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.huabo.base.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "TC_DATA")
public class Data extends BaseModel implements Serializable {

    /**
     * <p>Field serialVersionUID: 序列号</p>
     */
    private static final long serialVersionUID = 1L;

    //主键
    @Id
    @Column(name = "F_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    //实体外键
    @Column(name = "F_REF_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long refId;

    //内容
    @Column(name = "F_CONTENT")
    private String content;

    //序号
    @Column(name = "F_NUM")
    private Integer num;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRefId() {
        return refId;
    }

    public void setRefId(Long refId) {
        this.refId = refId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}